class x_GFx_Menu extends GFxMoviePlayer;

//=============================================================================
// Variables
//=============================================================================
var protected x_GameInfo              mGameInfo;

//=============================================================================
// Functions: init
//=============================================================================
function InitUI(x_GameInfo aGameInfo, optional LocalPlayer LocPlay)
{
	mGameInfo = aGameInfo;
	Init(LocPlay);
	Start();
	Advance(0.f);
}

// if started from kismet then find gameinfo reference
function bool Start(optional bool startpaused)
{
	if (mGameInfo == none) mGameInfo = x_GameInfo(GetPC().WorldInfo.Game);
	return super.Start(startpaused);
}

//=============================================================================
// Functions: Buttons
//=============================================================================
function CallMouseDown(int button) {ActionScriptVoid("_root.MouseDown");}
function CallMouseUp(int button) {ActionScriptVoid("_root.MouseUp");}
function BTN_Pressed(string aButtonName);
function BTN_Released(string aButtonName);


function BTN_RollOver(string aButtonName)
{
	mGameInfo.GetPlayerController().SetBlockMouseInput(true);
}

function BTN_RollOut(string aButtonName)
{
	mGameInfo.GetPlayerController().SetBlockMouseInput(false);
}

//=============================================================================
// Default Properties:
//=============================================================================
DefaultProperties
{
	bIgnoreMouseInput = TRUE // this determines whether the mouse is captured or not
    bCaptureInput = TRUE

	bPauseGameWhileActive = FALSE // do you want your game paused when this is open? //overriden in menu type selection

    bDisplayWithHudOff = FALSE // do you want the HUD displayed while this is open?

    TimingMode=TM_Real

    // Sound Mapping
    SoundThemes(0)=(ThemeName=default,Theme=UISoundTheme'UDKFrontEnd.Sound.SoundTheme')
}